package com.example.demo.modules.demo.entity;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import javax.validation.constraints.NotBlank;

@Table(value = "base_user")
@Data
public class User {

    @Id
    private String id;

    private String name;

    @NotBlank
    private String phone;
}
